<template>
  <ul>
      <li>消息id：{{id}}</li>
      <li>消息title：{{title}}</li>
  </ul>
</template>

<script>
export default {
    name:'Detail',
    // props:['a','b']
    props:['id','title'],
    mounted(){
        console.log(this.$route)
    }
}
</script>